<?php

/**
 * Subclass for performing query and update operations on the 'list_tax_codes' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ListTaxCodesPeer extends BaseListTaxCodesPeer
{
  public static function doSelectSortByName(){
    $c = new Criteria();
    $c->addAscendingOrderByColumn(self::TAX_CODE);
    return self::doSelect($c);
  }
  
  public static function getList($withBlank){
    $c = new Criteria();
    $c->addAscendingOrderByColumn(self::TAX_CODE);
    $listTaxCodess = self::doSelect($c);
    if($withBlank)
      $tax_codes = array(''=>'');
    else
      $tax_codes = array();
    foreach($listTaxCodess as $listTaxCodes)
      $tax_codes[$listTaxCodes->getTaxCode()] = $listTaxCodes->getTaxCode();
    return $tax_codes;
    
  }
  
}
